package com.fay.mymiaosha.service;

import com.fay.mymiaosha.exception.BizException;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/18 18:54
 * @Version 1.0
 */
public interface IOrderService {
    /**
     * 创建订单。用户和商品产生关联，两者id以及商品数量amount
     *
     * @param userId 用户id
     * @param itemId 商品id
     * @param promoId 活动id
     * @param amount 数量
     */
    void createOrder(Integer userId, Integer itemId, Integer promoId, Integer amount) throws BizException;
}
